JAVAPATH	= /usr/lib/jvm/java-6-sun
FLAGS		= -Wall -shared
              
LIBS        = /usr/lib/libcv.so \
              /usr/lib/libhighgui.so \
              /usr/lib/libcxcore.so

all : opencv.dll

opencv.h :
	javah -jni -classpath ../bin -o opencv.h pl.matt.opencv.OpenCVDetection
	
opencv.dll : opencv.h
	gcc `pkg-config --cflags opencv` `pkg-config --libs opencv` -shared -o opencv.so opencv.c

clean :
	rm opencv.h
	rm opencv.so
